//
//  ViewController.m
//  ConghuiEducation
//
//  Created by leo on 16/8/31.
//  Copyright © 2016年 sample. All rights reserved.
//

#import "ViewController.h"
#import "QiniuSDK.h"
#import "QiniuAuthPolicy.h"
#import "InputPupilInfoViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
//    QNUploadManager *upManager = [[QNUploadManager alloc] init];
//    QiniuAuthPolicy *p = [[QiniuAuthPolicy alloc] init];
//    p.scope = @"laoyang";
//    NSString *token = [p makeToken:AK secretKey:SK];
//    NSLog(@"token = %@",token);
//    NSData *data = [@"Hello, World! 2" dataUsingEncoding : NSUTF8StringEncoding];
//    [upManager putData:data key:@"hello baby" token:token complete:^(QNResponseInfo *info, NSString *key, NSDictionary *resp){
//        NSLog(@"%@ %@ %@",info,key,resp);
//    }option:nil];
    
    self.title = @"聪慧教育";
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(IBAction)callNameClick{
    CallNameViewController *callNameVc = [[CallNameViewController alloc] initWithNibName:@"CallNameViewController" bundle:nil];
    [self.navigationController pushViewController:callNameVc animated:YES];
}

-(IBAction)inputPupilInfomation{
    InputPupilInfoViewController *input = [[InputPupilInfoViewController alloc] initWithNibName:@"InputPupilInfoViewController" bundle:nil];
    [input setIsNewPupil:YES];
    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:input];
    [self presentViewController:nav animated:YES completion:nil];
}
@end
